Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make sure fill defualts and expand args for all types #481

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Dec 20, 2024

Cherry-picks 8cc2df0 from #480 to avoid merge conflicts

Adds tests and fixes implementations where we weren't filling default
values and expanding args.
This was mostly a problem for anything under the targets section, but
also a few other fields where arg expansion is nice to have (such as in
test commands).

Also splits some types/functions off to separate files so we don't have one mega file.

Fixes #479
Fixes #467

This makes it so frontends can have their own args that the dalec core
does not need to know about.

This also moves the custom args for windowscross local to that
implementation.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 requested a review from a team as a code owner December 20, 2024 18:10
@cpuguy83 cpuguy83 requested a review from adamperlin December 20, 2024 18:11
@cpuguy83 cpuguy83 force-pushed the improve_subst branch 2 times, most recently from d797b36 to eb8031a Compare December 20, 2024 18:25
frontend/mux.go Outdated Show resolved Hide resolved
load.go Outdated Show resolved Hide resolved
Adds tests and fixes implementations where we weren't filling default
values and expanding args.
This was mostly a problem for anything under the `targets` section, but
also a few other fields where arg expansion is nice to have (such as in
test commands).

Signed-off-by: Brian Goff <[email protected]>
Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I think moving different spec sections to different files makes it much clearer which spots are getting defaults filled/args substituted and helps break out the logic nicely.

@cpuguy83 cpuguy83 merged commit bf9ef0c into Azure:main Jan 3, 2025
9 checks passed
@cpuguy83 cpuguy83 deleted the improve_subst branch January 3, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants